<?php
/*
 *author:Yangligao
 *Date:2013-10-4
 */
require 'Config.php';
require 'Public/Include/adv.php';
require 'Public/Include/footer.php';
require 'Public/Include/search.php';
require 'Public/Include/HotSort.php';
require 'Public/Include/latest.php';
$smarty->assign('positionFlag',"菜谱详情");
$menuModel = new MenuModel();
$menu_id = $_GET['menu_id'];
$eachMenuData = $menuModel->menu_select('*',"where menu_id={$menu_id}");

$arr['menu_id'] = $eachMenuData[0]['menu_id'];

$arr['menu_count'] = $eachMenuData[0]['menu_count'] + 1;
$menuModel->menu_update($arr);

$smarty->assign('eachMenuData',$eachMenuData[0]);
$smarty->display('Index/menudetail.html');
?>
